import store from '@/store/index.js'
//是否登录
export function IsLogin(){
	//获取token
	if (store.getters.getToken.token) {
		return true
	}
	else{
		return false
	}
}
//判断是否登录如果没登录返回登录页面
export function authorityControl(){
	if(!IsLogin()){
		uni.switchTab({
			url: '/pages/mycenter/mycenter'
		})
	}
}